package cn.liwq.demo.enums.sub;

import cn.liwq.demo.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作日志业务类型
 *
 * @author lweiqiang
 * @date 2023/1/9
 */
@Getter
@AllArgsConstructor
public enum OperationBizTypeEnum implements BaseEnum<Integer, String> {

    /** 0:预算合同 */
    BUDGET_CONTRACT(0, "budget_contract", "预算合同"),

    PURCHASE_CONTRACT(1, "purchase_contract", "采购合同"),

    PURCHASE_CHANGE_CONTRACT(2, "sell_change_contract", "采购合同变更"),

    /** 3:销售合同 */
    SELL_CONTRACT(3, "sell_contract", "销售合同"),

    SELL_CHANGE_CONTRACT(4, "sell_change_contract", "销售合同变更"),

    PROTOCOL(5, "protocol", "采购/销售协议"),

    INVENTORY_ADJUST(6, "inventory_adjust", "库存调整"),
    ;

    private Integer value;

    private String code;

    private String desc;
}
